<template>
  <div>
    <h2 @click="stagePro()">点击调用接口</h2>
    <!-- <h2>点击验证邮箱</h2> -->
  </div>
</template>

<script>
import { SearchSubjectByIdAPI,SearchAllSubjectAPI,UpdateSubjectAPI,SelectStageAllAPI } from "@/api/utils/index";
export default {
  data() {
    return {
      reList: [],
    };
  },
  methods: {
    async getTime(){
      return SearchSubjectByIdAPI(2).then(v=>{console.log(v.data);})
    },
    async getAllSubject(){
      return SearchAllSubjectAPI().then(v=>{console.log(v.data);})
    },
    async updateSubject(){
      let data = {"subjectId":1,"name":"Java后端","introduce":"123456"}
      return UpdateSubjectAPI(data).then(v =>{console.log(v.data);})
    },
    async stagePro(){
      return SelectStageAllAPI('','',1,5).then(v=>{console.log(v.data);})
    }
  },
  // async created() {
  //   const res = await SearchSubjectByIdAPI(1)
  //   // console.log(res);
  //   this.reList = res.data.data
  //   console.log(this.reList);
  // }, 
}
</script>

<style>
</style>